<?php
/**
 * ImpSoft Address Model
 * All functionality for the customer goes in here.
 * 
 * @package ImpSoft
 * @subpackage ImpSoft Models
 * @copyright Luke Visinoni (luke.visinoni@gmail.com)
 * @author Luke Visinoni (luke.visinoni@gmail.com)
 * @license GNU Lesser General Public License
 */
class Address extends ImpSoft_Db_Table {

    protected $_name = 'addresses';
    protected $_primary = 'address_id';
    protected $_dependentTables = array();
    protected $_rowClass = 'AddressRow';
    protected $_required = array();
	/**
	 * Add any filters that should be applied to this model when saving
	 */
	public function getFilters() {
	
		$filters = new Q_Filter_Set();
		return $filters;
	
	}
	/**
	 * Add any rules that should be applied to validation when saving
	 */
	public function getRules() {
	
		$rules = with(new Q_Rule_Set())
			->add(new Q_Rule_NotNull(), array('address', 'city', 'state', 'zip'), 'This is a required field');
		return $rules;
	
	}

}